package threshold

Import Path
	github.com/K-Phoen/grabana/timeseries/threshold (on go.dev)

Dependency Relation
	imports one package, and imported by one package

Involved Source Files threshold.go
Package-Level Type Names (total 5)
/* sort by: | */
DisplayStyle represents how the threshold should be visualized. func Style(style DisplayStyle) Option const AsFilledRegions const AsLines const Both const Off
Mode represents the type of value used as threshold. func ValueMode(mode Mode) Option const Absolute const Percentage
Option represents an option that can be used to configure an axis. func BaseColor(color string) Option func Steps(steps ...Step) Option func Style(style DisplayStyle) Option func ValueMode(mode Mode) Option func New(fieldConfig *sdk.FieldConfig, options ...Option) *Threshold func github.com/K-Phoen/grabana/timeseries.Thresholds(options ...Option) timeseries.Option
Color string Value float64 func Steps(steps ...Step) Option
Threshold represents a threshold visualization. func New(fieldConfig *sdk.FieldConfig, options ...Option) *Threshold
Package-Level Functions (total 5)
BaseColor defines the color of the thresholds' base.
New creates a new Threshold configuration.
Steps defines threshold steps.
Style defines the thresholds display style.
ValueMode defines how to interpret the threshold values.
Package-Level Constants (total 6)
const Absolute Mode = "absolute"
const AsLines DisplayStyle = "line"
const Both DisplayStyle = "line+area"
const Off DisplayStyle = "off"
const Percentage Mode = "percentage"